<template>
    <uni-popup ref="inputDialog" type="dialog">
        <uni-popup-dialog ref="inputClose"  mode="input" :title="UserInfoAttrEnum[attrName].label" :value="value"
                          :placeholder="UserInfoAttrEnum[attrName].placeholder" @confirm="confirm"></uni-popup-dialog>
    </uni-popup>
</template>
<script setup>
import {UserInfoAttrEnum} from '@/enums/user'

const inputDialog=ref()

const value=ref('')
const attrName=ref('')

const open=(attr)=>{
    attrName.value=attr
    inputDialog.value.open()
}
const confirm=(e)=>{
    console.log('e',e)
}
defineExpose({
    open,
})
</script>
<style scoped lang="scss">

</style>
